#define  _CRT_SECURE_NO_WARNINGS  1

#include "Stack.h"

void test()
{
	ST st;
	STInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);

	/*StackPop(&st);
	StackPop(&st);
	StackPop(&st);
	StackPop(&st);
	StackPop(&st);*/

	while (!StackEmpty(&st))
	{
		STDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}
	printf("\n");

	int size = StackSize(&st);
	printf("%d\n", size);

	//STDestroy(&st);
}
int main()
{
	test();
	return 0;
}